<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>innerText修改内部内容</title>
		<style type="text/css">
			div{
				width: 200px;
				height: 200px;
				border: 2px solid red;
			}
		</style>
		<script type="text/javascript">
			function change_page(){
				document.getElementById('box').innerText="<h1>我不好</h1>";
				//原样输出
			}
		</script>
	</head>
	<body>
		<input type="button" value="点击" onclick="change_page()"/>
		<div id="box">你好呀</div>
	</body>
</html>
